package iot.wlink.network.codec.script;

import iot.wlink.network.codec.MessageDecoder;
import iot.wlink.network.codec.MessageEncoder;

import iot.wlink.network.payload.down.DownPayload;
import iot.wlink.network.payload.up.UpPayload;

/**
 * @author : willian fu
 * @date : 2021/8/20
 */
public interface ScriptCodec extends MessageDecoder, MessageEncoder {

    @Override
    default byte[] encode(DownPayload payload){
        return new byte[0];
    }

    default UpPayload decode(byte[] payload){
        return null;
    }

}
